//
//  SEPrescriptionDiagnosis.swift
//  SmartEyeForDoctor
//
//  Created by QDSG on 2021/5/11.
//

import HandyJSON

/// 主次诊断
struct SEPrescriptionDiagnosis: HandyJSON {
    var id: String?
    var createTime: Date?
    var updateTime: Date?
    var creator: String?
    var `operator`: String?
    var isDeleted: Int = 0
    var bisId: String?          // 业务id
    var isMain: Int = 0         // 是否主诊断（1是，0否）
    var prefix: String?         // 前缀
    var middle: String?         // 诊断
    var suffix: String?         // 后缀
}

struct SEPrescriptionDiagnosisPickList: HandyJSON {
    var pageNum: Int = 0
    var pageSize: Int = 0
    var total: Int = 0
    var totalPage: Int = 0
    var list: [SEPrescriptionDiagnosisPick]?
}

struct SEPrescriptionDiagnosisPick: HandyJSON {
    // MARK: - 前缀、后缀
    
    var key: String?
    var pid: String?
    var value: String?
    
    // MARK: - 诊断
    
    var code: String?
    var name: String?
    
    var id: String?
}
